#include<iostream>
#include<queue>
using namespace std;
int main()
{
	priority_queue<double>pq1;
	pq1.push(3.2);pq1.push(9.8);pq1.push(5.4);
	while(!pq1.empty()){
		cout<<pq1.top()<<" ";
		pq1.pop();
	}
	cout<<endl;
	priority_queue<double,vector<double>,greater<double>>pq2;
	pq2.push(3.2);pq2.push(9.8);pq2.push(9.8);pq2.push(5.4);
	while(!pq2.empty())
	{
		cout<<pq2.top()<<" ";
		pq2.pop();
	}
	return 0;
}
